package cn.zswltech.gruul.config;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.BeansException;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * @create: 2022-07-13
 **/

@Configuration
@ConditionalOnProperty(prefix = "common",name = "gruul.enable",havingValue = "true",matchIfMissing = true)
@ComponentScan(basePackages = "cn.zswltech.gruul")
@MapperScan(basePackages = {"cn.zswltech.gruul.dao.dal.dao"})
public class GruulAutoConfiguration implements ApplicationContextAware {
    @Override
    public void setApplicationContext(ApplicationContext applicationContext) throws BeansException {

    }
}

